package com.example.votemanage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author xingcheng
 * @since 2024-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("vote_option")
@NoArgsConstructor
@AllArgsConstructor
public class VoteOption implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "VO_ID", type = IdType.AUTO)
    private Integer voId;

    @TableField("VO_OPTION")
    private String voOption;

    @TableField("VS_ID")
    private Integer vsId;

    @TableField("VO_ORDER")
    private Integer voOrder;
    @TableField(exist = false)
    private List<VoteItem> voteItems=new ArrayList<>();
}
